cmake_minimum_required(VERSION 3.5)

project(rkrga LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 设置3588嵌入式开发环境
set(3588_DIR ${CMAKE_ROOT}/usr)
set(3588_DIR_INC ${3588_DIR}/include)
set(3588_DIR_LIB ${3588_DIR}/lib)

include_directories(${3588_DIR_INC})
include_directories(${3588_DIR_INC}/rga)

add_executable(rkrga
    main.cpp
    rkrga.h rkrga.cpp
)

target_link_libraries(rkrga rga)

include(GNUInstallDirs)
install(TARGETS rkrga
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
